package org.dromara.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.business.domain.BusinessComplaint;
import org.dromara.business.domain.bo.BusinessComplaintBo;
import org.dromara.business.domain.vo.BusinessComplaintVo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 投诉Service接口
 *
 * @author zlj
 * @date 2024-11-18
 */
public interface BusinessComplaintService extends IService<BusinessComplaint> {

    /**
     * 查询投诉
     */
    BusinessComplaintVo queryById(Long id);

    /**
     * 查询投诉列表
     */
    TableDataInfo<BusinessComplaintVo> queryPageList(BusinessComplaintBo bo, PageQuery pageQuery);

    /**
     * 查询投诉列表
     */
    List<BusinessComplaintVo> queryList(BusinessComplaintBo bo);

    /**
     * 新增投诉
     */
    Boolean insertByBo(BusinessComplaintBo bo);

    /**
     * 修改投诉
     */
    Boolean updateByBo(BusinessComplaintBo bo);

    /**
     * 校验并批量删除投诉信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
